var express = require('express');
var router = express.Router();

const UserController = require('../controller/user');


//收藏动态
router.post('/collectShare',UserController.collectShare)
//取消收藏动态
router.post('/cancelCollect',UserController.cancelCollect)
//获取用户收藏
router.get('/getCollectId',UserController.getCollectId)
//获取用户收藏的具体动态内容
router.get('/getCollectDetail',UserController.getCollectDetail)
//获取用户动态
router.get('/getUserShare',UserController.getUserShare)
//关注用户
router.post('/setMyAttention',UserController.setMyAttention)
//取消用户关注
router.post('/cancelAttention',UserController.cancelAttention)
//获取用户关注
router.get('/getUserAttention',UserController.getUserAttention)
//获取用户粉丝
router.get('/getUserFans',UserController.getUserFans)
//根据ID获取用户信息
router.get('/getUserById',UserController.getUserById)
//修改用户信息
router.post('/update',UserController.update)
//获取用户关注ID
router.get('/getUserAttentionId',UserController.getUserAttentionId)

module.exports = router;